package builder2;

/**
 * @author: rensiyu
 * @create: 2021-09-01 14:23
 * @description:
 **/
public class Director {
    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    public Product construct(){
        builder.partA();
        builder.partB();
        builder.partC();
        System.out.println("创建者已经完成创建步骤.......");
        return builder.getProduct();
    }
}
